﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WebEntities.Models.WebInfo
{
    public enum RootCataStatus { Enabled = 1, Disabled }
    public enum RootCataType { Front = 1, Back }

    public class RootCata
    {
        public int RootCataID { get; set; }
        public string RootCataName { get; set; }
        public byte? RootCataType { get; set; }
        public byte? RootStatus { get; set; }
        public int? SortNum { get; set; }

        public static RootCata AsRootCata(WI_RootCata wiRcata)
        {
            RootCata rootcata = new RootCata
            {
                RootCataID = wiRcata.RootCataID,
                RootCataName = wiRcata.RootCataName,
                RootCataType = wiRcata.RootCataType,
                RootStatus = wiRcata.RootStatus,
                SortNum = wiRcata.SortNum
            };
            return rootcata;
        }
    }
}
